# -*- coding: utf-8 -*-
"""
# @Time    : 2021/1/7 下午4:54
# @Author  : tgy
"""

def char_count(path):
    ...

    with open(path,mode='rt', encoding='utf-8') as f:
        ...
        # sum((len(chars) for chars in f))小括号可以减少一个
        return sum(len(chars) for chars in f)





if __name__ == '__main__':
    ...
    # print(char_count('./README.md'))